		
		<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
		<script src="__PUBLIC__/js/util.js" type="text/javascript"></script>
		
		<script type="text/javascript">

			function contains(string, substr, isIgnoreCase) {
			    if (isIgnoreCase) {
			        string = string.toLowerCase();
			        substr = substr.toLowerCase();
			    }
			    var startChar = substr.substring(0, 1);
			    var strLen = substr.length;
			    for (var j = 0; j < string.length - strLen + 1; j++) {
			        if (string.charAt(j) == startChar)//如果匹配起始字符,开始查找
			        {
			            if (string.substring(j, j + strLen) == substr)//如果从j开始的字符与str匹配，那ok
			            {
			                return true;
			            }
			        }
			    }
			    return false;
			}
		
			$(document).ready(function(){
				 // 在这里写你的代码...
				 
	            if (contains(window.location.href, "Index", 0)) {
	                $("#Index").attr("class", "cut");
	            }
	            if (contains(window.location.href, "ProductShow", 0)) {
	                $("#ProductShow").attr("class", "cut");
	            }
	            if (contains(window.location.href, "News", 0)) {
	                $("#News").attr("class", "cut");
	            }
	            if (contains(window.location.href, "jdfc", 0)) {
	                $("#jdfc").attr("class", "cut");
	            }
	            if (contains(window.location.href, "ryrz", 0)) {
	                $("#ryrz").attr("class", "cut");
	            }
	            if (contains(window.location.href, "gywm", 0)) {
	                $("#gywm").attr("class", "cut");
	            }
	            if (contains(window.location.href, "lxwm", 0)) {
	                $("#lxwm").attr("class", "cut");
	            }			  
			});

			function kkk(){
				window.location = "__APP__/ProductShow/search/name/"+$('#searcProduct').val();	
			}
		</script>
		

		<div id="header" class="w980 posnR clear">
		<div class="fRight p5" style="width:600px;">
		<present name="_SESSION[C('USER_AUTH_KEY')]"><a href="__APP__/User/loginout/" class="orange fRight mR10">安全退出</a><a href="__APP__/ShoppingCart/" class="orange fRight mR10"><span class="mainbg block fLeft" style="background-position:-263px 2px; width:14px;height:14px;margin-right:3px;"></span>查看购物车</a><a href="__APP__/UserCenter/" class="orange fRight mR10"><span class="mainbg block fLeft" style="background-position:-234px 2px; width:14px;height:14px;margin-right:3px;"></span>用户中心</a> <span class="fRight">您好，{$_SESSION[C('USER_AUTH_KEY')]} 欢迎访问万州特色农产品网！ </span>&nbsp;&nbsp;
				
				
				
			<else /> 
				<a href="__APP__/User/register/" class="orange fRight mR10"><span class="mainbg block fLeft" style="background-position:-249px 2px; width:14px;height:14px;margin-right:3px;"></span>免费注册</a><a href="__APP__/User/login/" class="orange fRight mR10"><span class="mainbg block fLeft" style="background-position:-234px 2px; width:14px;height:14px;margin-right:3px;"></span>登陆</a> <span class="fRight">欢迎访问万州特色农产品网！您还未登录！</span>&nbsp;&nbsp;
				
				
		</present> 
		</div>
			
  			<div class="posnA" style="top:80px; left:290px;">
    			<input type="text" id="searcProduct" class="search-input mainbg fontGray9 line30" value="请输入您要查询的产品名称" onclick="this.value='';focus()"/>
    			<button class="search-submit mainbg" type="submit" onclick="kkk();">搜索</button>
  			</div>
  			<!-- 
  			<div class="posnA" style="top:138px; left:300px;">
  				<a href="error.html">礼盒</a> | 
  				<a href="error.html">有机大米</a> | 
  				<a href="error.html">有机杂粮</a> | 
  				<a href="error.html">枣</a> | 
  				<a href="error.html">食用菌</a> | 
  				<a href="error.html">蛋</a> | 
  				<a href="error.html">肉</a>
  			</div>
  			 -->
  			<div class="posnA line30" style="right:16px; bottom:16px; color:#fe4e00; font-family:Microsoft YaHei; font-size:30px;"><em>400-000-0000</em></div>
		</div>
		
		<div id="nav" class="w980 font14 clear">
  			<ul>
    			<li id="Index"><a href="__APP__/Index">首页</a></li>
    			<li id="ProductShow"><a href="__APP__/ProductShow">产品展示</a></li>
    			<li id="News"><a href="__APP__/News">新闻动态</a></li>
    			<li id="jdfc"><a href="__APP__/WebSiteShow/detail/code/jdfc">基地风采</a></li>
    			<li id="ryrz"><a href="__APP__/WebSiteShow/detail/code/ryrz">荣誉认证</a></li>
    			<li id="gywm"><a href="__APP__/WebSiteShow/detail/code/gywm">关于我们</a></li>
    			<li id="lxwm"><a href="__APP__/WebSiteShow/detail/code/lxwm">联系我们</a></li>
  			</ul>
  				
  			  <present name="_SESSION[C('USER_AUTH_KEY')]">
  			  	<span class="font12 mainbg block fRight" style="width:195px;height:21px; background-position:0 -120px;padding-left:30px;padding-top:4px;">购物车有&nbsp;<strong class="orange">{$shoppingCount}</strong>&nbsp;件商品&nbsp;|&nbsp;<a href="__APP__/ShoppingCart/" class="orange">去结算</a></span>	
  			  	<else/>
  			  	<span class="font12 mainbg block fRight" style="width:195px;height:21px; background-position:0 -120px;padding-left:30px;padding-top:4px;">您尚未登陆，无法查询购物车信息！</span>
  			  </present>
  			
  			  
		</div>



